function cailiao() {
    var lineChart = echarts.init(document.getElementById("echart_cailiao"));
    var lineoption = {
        title: {
            text: ''
        },
        tooltip: {
            trigger: 'axis'
        },
        legend: {
            data: ['压力值']
        },
        grid: {
            x: 40,
            x2: 40,
            y2: 24
        },
        calculable: true,
        xAxis: [{
            type: 'category',
            boundaryGap: false,
            data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
        }],
        yAxis: [{
            type: 'value',
            axisLabel: {
                formatter: '{value} pa'
            }
        }],
        series: [{
            name: '压力值',
            type: 'line',
            data: [11, 11, 15, 13, 12, 13, 10],
            markPoint: {
                data: [{
                        type: 'max',
                        name: '最大值'
                    },
                    {
                        type: 'min',
                        name: '最小值'
                    }
                ]
            },
            markLine: {
                data: [{
                    type: 'average',
                    name: '平均值'
                }]
            }
        }]
    };
    lineChart.setOption(lineoption);
    $(window).resize(lineChart.resize);

}

function materialTesting(){
	var prefixAll = ctx + "project/projectAll";
	var options = {
		showSearch:false,
   	showRefresh:false,
   	showToggle:false,
   	showColumns:false,
   	id:'materialTesting',		
   	url: prefixAll + "/materialTesting",
   	detailUrl: prefixAll + "/materialTestingDetail/{id}",
   	modalName: "材料检测",
    columns: [
    {
        field : 'id', 
        title : '序号'/* ,
        formatter: function (value, row, index) {
            
            return index + 1;
        } */
    },
    {
        field : 'materialOrganization', 
        title : '检测机构名称'
    },
    {
        field : 'projectName', 
        title : '工程名称'
    },
    {
        field : 'projectPosition', 
        title : '工程部位 '
    },
    {
        field : 'testingItems', 
        title : '检测项目'
    },
    {
        field : 'curveTime', 
        title : '曲线时间'
    },
    {
        field : 'entrustTime', 
        title : '委托日期'
    },
    {
        field : 'testingTime', 
        title : '检测日期'
    },
    {
        field : 'presentationTime', 
        title : '报告日期'
    },
    {
        field : 'sampleId', 
        title : '样品编号'
    },
    {
        field : 'presentationId', 
        title : '报告编号'
    },
    {
        field : 'testingResult', 
        title : '检测结论'
    },
                {
                    field: 'opera',
                    title: '查看',
                    formatter: function (value, row, index) {
                         var actions = [];
             actions.push('<a class="btn btn-warning btn-xs" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.id + '\')"><i class="fa fa-plus"></i>查看</a> ');
                         return actions.join('');
                }
            }
    ]
}
	$.table.init(options);
}